package org.brisling.oa.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.TableGenerator;
import javax.persistence.Transient;

import org.brisling.base.domain.inf.BaseFlowDomainInf;
import org.brisling.common.ConstSysParam;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 
 * <p>Title: OALowvalue</p>
 * <p>Description: 耗材采购实体类</p>
 * <p>Company: tongking</p>
 * @author jackson wang
 * @since 1.0
 * @version 1.0
 * @date 2016年7月8日 下午8:48:11
 */
@Entity
@Table(name=ConstSysParam.MODULE_OA_LOWVALUE)
public class OALowvalue extends BaseOADomain implements BaseFlowDomainInf{

	
	
	//具体事项(父类name)
	
	//填表日期
//		@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
//		private Date apply_date;

	//手术日期
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date surgery_date;
	
	//患者姓名
			@Column(length=50)
			private String patient_name;
			private String patient_no;
	
	//患者科室
		private Long patient_dept_id;
		private String patient_dept_name;
		
	//住院号
		private String patient_id;
		
	//是否收门诊费
		private String outpatient_cost;	
		
	//科室申购理由(父类apply_content)		
		
	//申购人员及科室（父类apply_name apply_deptname）
	
		
		//耗材价格
		private Double price;
	/**
		 * @return the price
		 */
		public Double getPrice() {
			return price;
		}

		/**
		 * @param price the price to set
		 */
		public void setPrice(Double price) {
			this.price = price;
		}

		//供应商	
		private Long supply_id;
		
		private String supply_name;	
		
		
	//分管院领导审核
		//private String directLeader_content; 继承父类
		
	//药剂科审核意见（父类 biz_content）
		
	//物价审计科审核（父类 audit_content）
		
	//分管院领导审核（父类 chargeLeader_content）
		
	//院办审核	
	
	//采购领导小组意见
	private String pcm_content;
	
	@Column(length=20)
	private String pcm_name;
			
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
	private Date pcm_time;
	
    //党委会审核
	
	
	//采购明细
	private String purchase_detail;
		
	//耗材信息子表记录(前端至后端)
	@Transient
	private String supply_sub_info;

	public Date getSurgery_date() {
		return surgery_date;
	}

	public void setSurgery_date(Date surgery_date) {
		this.surgery_date = surgery_date;
	}

	public String getPatient_name() {
		return patient_name;
	}

	public void setPatient_name(String patient_name) {
		this.patient_name = patient_name;
	}

	public String getPatient_no() {
		return patient_no;
	}

	public void setPatient_no(String patient_no) {
		this.patient_no = patient_no;
	}

	public Long getPatient_dept_id() {
		return patient_dept_id;
	}

	public void setPatient_dept_id(Long patient_dept_id) {
		this.patient_dept_id = patient_dept_id;
	}

	public String getPatient_dept_name() {
		return patient_dept_name;
	}

	public void setPatient_dept_name(String patient_dept_name) {
		this.patient_dept_name = patient_dept_name;
	}

	public String getPatient_id() {
		return patient_id;
	}

	public void setPatient_id(String patient_id) {
		this.patient_id = patient_id;
	}

	public String getOutpatient_cost() {
		return outpatient_cost;
	}

	public void setOutpatient_cost(String outpatient_cost) {
		this.outpatient_cost = outpatient_cost;
	}

	public Long getSupply_id() {
		return supply_id;
	}

	public void setSupply_id(Long supply_id) {
		this.supply_id = supply_id;
	}

	public String getSupply_name() {
		return supply_name;
	}

	public void setSupply_name(String supply_name) {
		this.supply_name = supply_name;
	}

	

	public String getSupply_sub_info() {
		return supply_sub_info;
	}

	public void setSupply_sub_info(String supply_sub_info) {
		this.supply_sub_info = supply_sub_info;
	}	

	public String getPcm_content() {
		return pcm_content;
	}

	public void setPcm_content(String pcm_content) {
		this.pcm_content = pcm_content;
	}

	public String getPcm_name() {
		return pcm_name;
	}

	public void setPcm_name(String pcm_name) {
		this.pcm_name = pcm_name;
	}

	public Date getPcm_time() {
		return pcm_time;
	}

	public void setPcm_time(Date pcm_time) {
		this.pcm_time = pcm_time;
	}

	/**
	 * @return the purchase_detail
	 */
	public String getPurchase_detail() {
		return purchase_detail;
	}

	/**
	 * @param purchase_detail the purchase_detail to set
	 */
	public void setPurchase_detail(String purchase_detail) {
		this.purchase_detail = purchase_detail;
	}	
	
}
